package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by admin on 2018/9/13.
 * 做账汇总页面
 */
@Controller
@RequestMapping("/billsRouter")
public class WmsShippedBillsRouter {
    @Autowired
    SysMenuService menuService;

    /**
     * 跳转做账汇总页面
     * @param menu
     * @param model
     * @return
     */
    @RequestMapping(value = "/toBillsList/{menu}")
    public String toShippedBillsList(@PathVariable("menu") String menu, Model model){
        model.addAttribute("functions",menuService.getFunctions(menu));
        return  "journaling/shippedBills/shippedBillsList";
    }
}
